﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Ample.Model;
using System.Data.Linq;

namespace Ample.DAL
{
    public class ProductTypeManager : DBBase
    {
        public static ProductTypeManager Create()
        {
            return new ProductTypeManager();
        }

        public IEnumerable<ProductType> GetProductTypes()
        {
            using (AmpleDataContext context = DataContext)
            {
                return context.Ample_ProductTypes_SelectManual().ToArray <ProductType>();
            }
        }

    }
}
